import QtQuick 2.0
import Qt3D 1.0
import Qt3D.Shapes 1.0

Item3D {
    id: _root
    property int number: 0

    onNumberChanged: {
        console.debug("NUMS:" + number);
    }

    Number{
        id: _n1
        x: -1.6
        enabled: number !== 0
        number: Math.floor(_root.number / 1000) % 10
    }
    Number{
        id: _n2
        x: -0.8
        enabled: number !== 0
        number: Math.floor(_root.number / 100) % 10
    }
    Number{
        id: _n3
        enabled: number !== 0
        number: Math.floor(_root.number / 10) % 10
    }
    Number{
        id: _n4
        x: 0.8
        number: _root.number % 10
    }
}
